import request from '@/utils/request'

// 查询甲醛浓度记录列表
export function listFormaldehyde(query) {
  return request({
    url: '/airsystem/formaldehyde/list',
    method: 'get',
    params: query
  })
}

// 查询甲醛浓度记录详细
export function getFormaldehyde(recordId) {
  return request({
    url: '/airsystem/formaldehyde/' + recordId,
    method: 'get'
  })
}

// 新增甲醛浓度记录
export function addFormaldehyde(data) {
  return request({
    url: '/airsystem/formaldehyde',
    method: 'post',
    data: data
  })
}

// 修改甲醛浓度记录
export function updateFormaldehyde(data) {
  return request({
    url: '/airsystem/formaldehyde',
    method: 'put',
    data: data
  })
}

// 删除甲醛浓度记录
export function delFormaldehyde(recordId) {
  return request({
    url: '/airsystem/formaldehyde/' + recordId,
    method: 'delete'
  })
}
